<template>
    <div class='header'>
        <i class='iconfont icon-xiangzuo_o' @click="handleBack"></i>
        <slot></slot>
    </div>
</template>
<script>
export default {
  methods: {
    handleBack () {
      this.$router.back()
    }
  }
}
</script>
<style lang="scss" scoped>
    .header{
        font-size: 17px;
        width: 100%;
        height: 44px;
        background: white;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        text-align: center;
        line-height: 44px;
        i{
            width: 30px;
            height: 30px;
            font-size: 20px;
            position: absolute;
            left: 10px;
            top: 0;
        }
    }
</style>
